package com.spark.shiro.dao;

import com.spark.shiro.bean.PageBean;
import com.spark.shiro.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by tyd on 2017-10-28.
 */
@Repository
public interface UserDao {

    User getUserByUserName(String userName);

    Set<String> getRolesByUserName(String userName);

    Set<String> getPermissionsByUserName(String userName);

    List<User> getUserListByPage(Map<?,?> map);
}
